
import axios from 'axios';
const util = {};
//开发者正常所有
 util.fatherAll=params=>axios.post('/api/father/findAllFather',params).then((res)=>res);
 //开发者正常查询
 util.fatherCheck=params=>axios.post('/api/father/selFatherById',params).then((res)=>res);
 //开发者正常更改
 util.fatherChange=params=>axios.post('/api/father/updFather',params).then((res)=>res);
//开发者封号所有
util.fatherDisableAll=params=>axios.post('/api/father/findAllFather',params).then((res)=>res)
//话题内容（标题）
util.topicAllTitle=()=>axios.post('/api/Topic/getTopicContentAll').then((res)=>res)
//添加话题内容
util.topicAddTitle=params=>axios.post('/api/Topic/addTopicContent',params).then((res)=>res)
//修改话题内容
util.topicChangeTitle=params=>axios.post('/api/Topic/updateTopicContent',params).then((res)=>res)
//删除话题内容
util.topDel=params=>axios.post('/api/Topic/deleteTopicContentById',params).then((res)=>res);
//获取话题
util.topicAll=params=>axios.post('/api/Topic/getTopicByTopicId',params).then((res)=>res);
//修改话题状态
util.topicStatus=params=>axios.post('/api/Topic/updateTopicState',params).then((res)=>res);
//类型页面()
util.typeAllInfor = () => axios.post('/api/digital/findAllDigitalCategory').then((res) => res);
//类型页面添加
util.typeAddInfor = params => axios
  .post('/api/digital/addDigitalCategory', params).then((res) => res);
//类型页面修改
util.typeChangeInfor = params => axios
  .post('/api/digital/updDigitalCategory', params)
  .then((res) => res);
//类型页面删除
util.typeDelInfor = params => axios.post('/api/digital/delDigitalCategory', params).then((res) => res);
//品牌页面
util.allBrand = params => axios.post('/api/digital/findAllDigitalBrand',params).then((res) => res);
//品牌页面添加
util.brandAddInfor = params => axios.post('/api/digital/addDigitalBrand', params).then((res) => res);
//品牌页面修改
util.brandChangeInfor = params => axios.post('/api/digital/updDigitalBrand', params).then((res) => res);
//品牌页面删除
util.brandDelInfor = params => axios.post('/api/digital/delDigitalBrand', params).then((res) => res);
//信息页面获取全部
util.allInfor = params => axios.post('/api/digital/findAllDigitalMassage', params).then((res) => res);
//信息页面添加品牌
util.inforAddInfor = params => axios.post('/api/digital/addDigitalMassage', params).then((res) => res);
//信息页面修改品牌
util.inforChangInfor = params => axios.post('/api/digital/updDigitalMassage', params).then((res) => res);
//信息页面删除
util.inforDelInfor = params => axios.post('/api/digital/delDigitalMassage', params).then((res) => res);
//动态所有信息
util.dynamicAll = params => axios.post('/api//Topic/getTopic', params).then((res) => res);
//系统设置
util.systemAll=()=>axios.post('/api/RolePower/getRoleListAll').then((res)=>res);
//系统设置添加
util.systemAdd=params=>axios.post('/api/RolePower/addRolePower',params).then((res)=>res);
//系统设置删除
util.stytemDel=params=>axios.post('/api/RolePower/deleteRloePowerByid',params).then((res)=>res);
//系统设置修改
util.stystemChange=params=>axios.post('/api/RolePower/getPowerAll',params).then((res)=>res);
//点评获取全部
util.remarkAll=params=>axios.post('/api/review/findAllReview',params).then((res)=>res);
//点评更改状态
util.remarkChange=params=>axios.post('/api/review/updReviewState',params).then((res)=>res);
//点评删除
util.remarkDel=params=>axios.post('/api/review/delReview',params).then((res)=>res)
//交易所有
 util.dealAll=()=>axios.post('/api/digital/findAllDealSpecificaticons').then((res)=>res);
//交易查询
util.dealSelect=params=>axios.post('/api/digital/selDealById',params).then((res)=>res);
//参数所有
util.paramsColor=()=>axios.post('/api/digital/findAllColor').then((res)=>res);
//参数添加
util.addParams=()=>axios.post('/api/digital/addDealSpecifications').then((res)=>res);
//某个话题回复
util.replayAll=params=>axios.post('/api/reply/findAllReply',params).then((res)=>res);
//所有回复
util.replayAllTitle=params=>axios.post('/api/reply/findAllReply',params).then((res)=>res);
export default util;